<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="css/common.css" type="text/css" />
<script language="javascript" src="js/jquery-1.4.2.min.js"></script>
<script language="javascript" src="js/jquery.checkboxes.min.js"></script>
<script language="javascript" src="js/tableRowCheckboxToggle.js"></script>
<script>
$(document).ready(function(){
		//点击事件切换 全选取消状态
		$("#selectall").click( function (){ $("#grouplist").toggleCheckboxes(); });
	});
</script>

<title>列表</title>
</head>

<body>
<div id="man_zone">
<form action="sys_info.php" method="post" name="form1">
<input type="hidden" name="action" value="save">

<table width="99%"  border="0" cellpadding="0" cellspacing="1">
<tr align="center" bgcolor="#E6F7CA" height="25">
<th width="24%">参数说明</th>
<th width="61%">参数值</th>
<th width="15%">变量名</th>
</tr>
<?php
$query=$db->query("Select * From `{$tablepre}sysconfig` where groupid='0' order by sid asc");
$i = 1;
while($row = $db->fetch_array($query))
{
	if($i%2==0)
	{
		$bgcolor = "#FDFDF2";
	}
	else
	{
		$bgcolor = "#ECFACD";
	}
	$i++;
?>
<tr align="center" height="25" bgcolor="<?php echo $bgcolor?>">
<td  class="left_title_2">
<?php echo $row['info']; ?>：
</td>
<td align="left">
<?php
if($row['type']=='bool')
{
	$c1='';
	$c2 = '';
	$row['value']=='Y' ? $c1=" checked" : $c2=" checked";
	echo "<input type='radio' class='np' name='edit___{$row['varname']}' value='Y'$c1>是 ";
	echo "<input type='radio' class='np' name='edit___{$row['varname']}' value='N'$c2>否 ";
}else if($row['type']=='bstring')
{
	echo "<textarea name='edit___{$row['varname']}' row='4' id='edit___{$row['varname']}' style='width:100%;height:50px'>".htmlspecialchars($row['value'])."</textarea>";
}else if($row['type']=='number')
{
	echo "<input type='text' name='edit___{$row['varname']}' id='edit___{$row['varname']}' value='{$row['value']}' style='width:30%'>";
}else
{
	echo "<input type='text' name='edit___{$row['varname']}' id='edit___{$row['varname']}' value=\"".htmlspecialchars($row['value'])."\" style='width:580px;'>";
}
?>
</td>
<td align="left"> &nbsp;&nbsp;<?php echo $row['varname']?></td>
</tr>
<?php
}

?>


<TR height=25 align=middle bgColor=#ecfacd><TD class=left_title_2>水印位置： </TD>
<TD align=left>
<?php
$query1=$db->query("Select * From `{$tablepre}sysconfig` where varname='cfg_water_img' order by sid asc");
$row1 = $db->fetch_array($query1)
?>
  <select id=edit___cfg_water_img type=text name=edit___cfg_water_img>
    <option value="1" <?php if($row1['value']=='1')echo 'selected="selected"'; ?>>顶端居左</option>
    <option value="2" <?php if($row1['value']=='2')echo 'selected="selected"'; ?>>顶端居中</option>
    <option value="3" <?php if($row1['value']=='3')echo 'selected="selected"'; ?>>顶端居右</option>
    <option value="4" <?php if($row1['value']=='4')echo 'selected="selected"'; ?>>中部居左</option>
    <option value="5" <?php if($row1['value']=='5')echo 'selected="selected"'; ?>>中部居中</option>
    <option value="6" <?php if($row1['value']=='6')echo 'selected="selected"'; ?>>中部居右</option>
    <option value="7" <?php if($row1['value']=='7')echo 'selected="selected"'; ?>>底端居左</option>
    <option value="8" <?php if($row1['value']=='8')echo 'selected="selected"'; ?>>底端居中</option>
    <option value="9" <?php if($row1['value']=='9')echo 'selected="selected"'; ?>>底端居右</option>
  </select>

</TD>
<TD align=left>&nbsp;&nbsp;cfg_water_img</TD></TR>


</table>


<table width="100%" border="0" cellspacing="1" cellpadding="1">
<tr bgcolor="#F3FFDD">
<td height="50" colspan="3">
<table width="98%" border="0" cellspacing="1" cellpadding="1">
<tr>
<td width="38%">&nbsp;</td>
<td width="23%"><input name="imageField" type="image" src="images/button_ok.gif" width="60" height="22" border="0" class="np"></td>
<td width="39%"><img src="images/button_reset.gif" width="60" height="22" style="cursor:pointer" onClick="document.form1.reset()"></td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</div>
</body>
</html>